<template>
  <div class="page">
  <el-pagination
    background
    layout="prev, pager, next"
    @current-change="handleCurrentChange"
    :page-size="msg.pagesize"
    :total="msg.total">
  </el-pagination>
  </div>
</template>

<script>
    export default {
        name: "pagination",
      props: ["msg"],
      methods: {
        handleCurrentChange(val) {
          this.$emit('refreshList',val);
        },

      }
    }
</script>

<style scoped>
  .page{
    text-align: right;
    margin: 30px auto;
  }
</style>
